package com.general.framework.zzyy.threadPool;

public class CtlOf {
    public static void main(String[] args) {
        int ctl = 0b10000000000000000000000000000000;  // 假设这是ctl的值，高3位有状态信息
        int mask = (1 << 29) - 1;
        System.out.println(Integer.toBinaryString(mask));
        int workerCount = ctl & mask;
        System.out.println("模拟提取的线程数量（二进制）: " + Integer.toBinaryString(workerCount));
        System.out.println("模拟提取的线程数量（十进制）: " + workerCount);
    }
}
